package com.jspxcms.plug.domain;

import javax.persistence.*;
import java.util.Date;

/**
 *
 */

@Entity
@Table(name = "plug_user_exchange")
public class UserExchange implements java.io.Serializable {
    private Integer id;
    private Integer goodsId;
    private Integer goodsScore;
    private String goodsTitle;
    private String address;
    private String phone;
    private Integer userId;
    private Date creationDate;
    private Date auditDate;
    private Integer success;
    private Integer adminId;
    private String  postuser;
    @Id
    @Column(name = "f_id", nullable = false)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Column(name = "f_goods_id", nullable = true)

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }


    @Column(name = "f_goods_title", nullable = true)

    public String getGoodsTitle() {
        return goodsTitle;
    }

    public void setGoodsTitle(String goodsTitle) {
        this.goodsTitle = goodsTitle;
    }

    @Column(name = "f_goods_score", nullable = true)

    public Integer getGoodsScore() {
        return goodsScore;
    }

    public void setGoodsScore(Integer goodsScore) {
        this.goodsScore = goodsScore;
    }

    @Column(name = "f_address", nullable = true)

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Column(name = "f_phone", nullable = true)

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Column(name = "f_user_id", nullable = true)

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    @Column(name = "f_creation_date", nullable = true)
    @Temporal(TemporalType.TIMESTAMP)

    public Date getCreationDate() {
        return creationDate;
    }

    public void setCreationDate(Date creationDate) {
        this.creationDate = creationDate;
    }

    @Column(name = "f_audit_date", nullable = true)
    @Temporal(TemporalType.TIMESTAMP)

    public Date getAuditDate() {
        return auditDate;
    }

    public void setAuditDate(Date auditDate) {
        this.auditDate = auditDate;
    }

    @Column(name = "f_success", nullable = true)

    public Integer getSuccess() {
        return success;
    }

    public void setSuccess(Integer success) {
        this.success = success;
    }

    @Column(name = "f_admin_id", nullable = true)

    public Integer getAdminId() {
        return adminId;
    }

    public void setAdminId(Integer adminId) {
        this.adminId = adminId;
    }

    @Column(name = "f_post_user", nullable = true)
    public String getPostuser() {
        return postuser;
    }

    public void setPostuser(String postuser) {
        this.postuser = postuser;
    }

    @Override
    public int hashCode() {
        return this.id;
    }
}
